<link href="../addons/jy_merch2fee/resource/css/style.css" rel="stylesheet">
<div class="fui-page fui-page-current page-commission-down" ng-init="pagedata.get_list()">
    <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click='goback()'></a>
        </div>
        <div class="title">团订单({{pagedata.commission_total}}个)</div>
    </div>
    <div class="fui-content">
        <div class='fui-cell-group' style='margin-top:0px;background: #fea23d;color: #fff;'>
            <div class='fui-cell'>
                <div class='fui-cell-info' style='width:auto;color: #fff;'>累计分红：+{{pagedata.commission_money}}元</div>
				<div ng-if="pagedata.params.type>=5" ng-click="access_json('/jiangjin//type='+pagedata.params.type)" class="fui-cell-remark">
					前往结算
				</div>
			</div>
        </div>
        <!--<div class="fui-tab fui-tab-warning" id="tab">
            <a ng-repeat="level in pagedata.levels" ng-click="pagedata.loaded=false;pagedata.params.page=1;pagedata.params.level=level.id;tool.get_list('jy_merch2fee/order/list/',true)" ng-class="{'active':pagedata.params.level==level}" href="javascript:;">{{level.title}}({{level.num}})</a>
        </div>-->
        <div  class="fui-list-group" id="container" >
		<div ng-repeat="item in pagedata.list track by item.id" class="fui-list">
			<div class="fui-list-media">
				<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">
				<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
			</div>
			<div class="fui-list-inner">
				<div class="row">
				      <div class="row-text" > 
					 {{item.member.nickname}}
				      </div>
				</div>
				<div class="subtitle">
				    {{item.ordersn}}
				</div>
				<div class="subtitle">
				    商品:{{item.goodstitle || '无'}}
				</div>
			</div>
			<div class="row-remark">
				<div class="text">预计佣金:{{item.money}}元</div>
				<div class="text" ng-if="item.dong_fee>0">{{item.isjiedong==1?'已解冻':'现冻结'}}:{{item.dong_fee}}</div>
				<div class="text"><i class="fui-tag fui-tag-red">{{item.type}}</i> <i class="fui-tag fui-tag-blue">{{item.statustitle}}</i></div>
			</div>
			
		</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<!--<i class='icon icon-group'></i><br/>暂时没有任何数据-->
			<img src="../core/resource/images/nomeb.png" style="width: 6rem;margin-bottom: .5rem;"><br/><p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_merch2fee/order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_merch2fee/order/list/type='+scope.pagedata.type);
}
</script>

